package com.ssm.service.impl;

import com.ssm.dao.TicketDao;
import com.ssm.pojo.OrderForm;
import com.ssm.pojo.Ticket;
import com.ssm.service.TicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TicketServiceImpl implements TicketService {

    @Autowired
    private TicketDao ticketDao;

    @Override
    public void addTicket(Ticket ticket) {
        ticketDao.addTicket(ticket);
    }

    @Override
    public List<Ticket> getTicketFormBy(Integer settleAccounts) {
        return ticketDao.getTicketFormBy(settleAccounts);
    }

    @Override
    public void delectTicketForm(Integer id) {
        ticketDao.delectTicketForm(id);
    }

    @Override
    public void updateTicketForm(Ticket ticket) {
        ticketDao.updateTicketForm(ticket);
    }

    @Override
    public List<Ticket> getTicket(Integer id) {
        return ticketDao.getTicket(id);
    }


}
